In the CSS Style Definition dialog box, set the Font
field to "Lucida Grande", "Trebuchet MS",
Verdana, Arial, sans-serif (create this list if
it doesn't yet exist). Set the Size field to
90% and the Color to
#333333 and click none
for Decoration.
In the Background category, set the Background Color
to #DDDDDD.
In the Box category, set the Width to 100%
and deselect the Same for All option under
Padding. Instead, set the padding as follows:
Top 6 pixels, Bottom 4
pixels, and Left 12 pixels.
In the Border category, leave the Same for All button
checked at the top of each field. Set the Style to
Solid, Width to 1
pixel, and Color to #333333.
In the Block category, set Display (at the bottom) to
block.
These settings make the button the same as the width
of the #navigation div, whether it's set to an absolute
or relative width and position. The "display: block;"
property forces the entire button to be an active link.
You specified no text decoration for the button but
defined a background color and borders. You gave the
button some padding so that the borders stand out from
the linklike, well, a button. Feel free to change the
wording on the buttons if you like.
This selector tells the browser that any link with
class "button" should be styled as a button.
Here's what this selector should look like in your
style sheet: .button a {
background-color: #DDDDDD;
border: 1px solid #333333;
display: block;
padding-bottom: 4px;
padding-left: 12px;
padding-top: 6px;
text-decoration: none;
width: 100%;
font-family: "Lucida Grande", "Trebuchet MS",
Verdana, Arial, sans-serif;
font-size: 90%;
color: #333333;
} |